<template>
  <lay-loading
    :indicator="1"
    :loading="loading"
    :tip="tip"
    :delay="delay"
    :wrapperClassName="wrapperClassName"
  >
    <slot />
  </lay-loading>
</template>
<script setup>
defineProps({
  delay: {
    type: Number,
    default: null,
  },
  tip: {
    type: String,
    default: "数据加载中...",
  },
  size: {
    type: String,
    default: "default",
  },
  wrapperClassName: {
    type: String,
    default: "",
  },
  loading: {
    type: Boolean,
    default: true,
  },
});
</script>
<style scoped></style>
